<td><a href="javascript:void(0)" id="2" class="iceCream" onclick="fun1(this.id)"><font size="4">Ice-Creams <br />Rs. : 40.00</font></a>
     	      <BR />
            <button id="venilaPlus" class="sum">+</button>
            <input  type="text" name="venilaText" class="quntity" id="venila" value="0" />
            <button id="venilaMinus" class="sum">-</button>
          </td>
          <td><a href="javascript:void(0)" id="3" class="iceCream" onclick="fun1(this.id)"><font size="4">Ice-Creams <br />Rs. : 50.00</font></a><br /> 
            <button id="venilaPlus" class="sum">+</button>
            <input  type="text" name="venilaText" class="quntity" id="venila" value="0" />
            <button id="venilaMinus" class="sum">-</button>
          </td>
            <td><a href="javascript:void(0)" id="4" class="iceCream" onclick="fun1(this.id)"><font size="4">KingCone <br />Rs. : 30.00</font></a><br /> 
            <button id="venilaPlus" class="sum">+</button>
            <input  type="text" name="venilaText" class="quntity" id="venila" value="0" />
            <button id="venilaMinus" class="sum">-</button>
          </td>
            <td><a href="javascript:void(0)" id="5" class="iceCream" onclick="fun1(this.id)"><font size="4">Candy <br />Rs. : 25.00</font></a><br /> 
            <button id="venilaPlus" class="sum">+</button>
            <input  type="text" name="venilaText" class="quntity" id="venila" value="0" />
            <button id="venilaMinus" class="sum">-</button>
          </td>
            <td><a href="javascript:void(0)" id="6" class="iceCream" onclick="fun1(this.id)"><font size="4">Candy <br />Rs. : 30.00</font></a><br /> 
            <button id="venilaPlus" class="sum">+</button>
            <input  type="text" name="venilaText" class="quntity" id="venila" value="0" />
            <button id="venilaMinus" class="sum">-</button>
          </td>
            <td><a href="javascript:void(0)" id="7" class="iceCream" onclick="fun1(this.id)"><font size="4">Sundae <br />Rs. : 80.00</font></a><br /> 
            <button id="venilaPlus" class="sum">+</button>
            <input  type="text" name="venilaText" class="quntity" id="venila" value="0" />
            <button id="venilaMinus" class="sum">-</button>
          </td>
          
          
          
          <!-- main.tpl nu ajax coding -->
          <script>
    $(document).ready(function(){
    	
     	$('#1').click(function(){
     		var quantity=$('#venila').val();
     		$('#venila').val(parseInt(quantity) + 1 );
     	  var dataString ="&waiterId="+{$smarty.get.waiter}+"&tableId="+{$smarty.get.table}+"&quantity="+$('#venila').val()+"&itemId="+$(this).attr('id');
     	  alert(dataString);
     	  $.ajax({
  	      url:'iceCreamAjax.php',
  	      data:'dataString ='+dataString ,
  	      dataType:'HTML',
  	      type:'POST',
  	      
  	      success:function(msg){
  	      	$("#displayOrder").append(msg);
  	      }
        });
        
      });
    	
    	$('#buttonMinus').click(function(){
    		if($('#venila').val()>0)
    	  {
    	  	var quantity=$('#venila').val();
    	  	$('#venila').val(parseInt(quantity) - 1 );
    	  }
    	});
      
    	 
    });   
  </script>